/**   
 * @文件名称: SysOperating.java
 * @类路径: cn.ccew.sys.model
 * @描述: TODO
 * @公司：春城1网
 * @作者：李兴建
 * @时间：2013-10-1 下午02:30:01
 * @版本：V1.0   
 */

package cn.ccew.sys.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import cn.ccew.common.base.model.BaseEntity;

/**
 * @类功能说明：资源操作
 * @类修改者：
 * @修改日期：
 * @修改说明：
 * @公司：春城1网
 * @作者：李兴建
 * @创建时间：2013-10-1 下午02:30:01
 * @版本：V1.0
 */
@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table(name = "sys_operating")
public class SysOperating extends BaseEntity {
	public SysOperating() {

	}

	public SysOperating(String oPName, String oPMark, SysResources resources) {
		super();
		this.oPName = oPName;
		this.oPMark = oPMark;
		this.resources = resources;
	}

	/**
	 * 图标
	 */
	private String oPImage;
	/**
	 * 操作名称
	 */
	private String oPName;
	/**
	 * 操作标识
	 */
	private String oPMark;
	/**
	 * 操作描述
	 * 
	 */
	private String oPDescription;
	/**
	 * 链接地址
	 */
	private String oPLink;

	/**
	 * 所属资源
	 */
	@ManyToOne(cascade = { CascadeType.MERGE, CascadeType.REFRESH }, fetch = FetchType.LAZY)
	@JoinColumn(name = "resources_id")
	private SysResources resources;

	public String getoPImage() {
		return oPImage;
	}

	public void setoPImage(String oPImage) {
		this.oPImage = oPImage;
	}

	public String getoPName() {
		return oPName;
	}

	public void setoPName(String oPName) {
		this.oPName = oPName;
	}

	public String getoPDescription() {
		return oPDescription;
	}

	public void setoPDescription(String oPDescription) {
		this.oPDescription = oPDescription;
	}

	public String getoPLink() {
		return oPLink;
	}

	public SysResources getResources() {
		return resources;
	}

	public void setResources(SysResources resources) {
		this.resources = resources;
	}

	public void setoPLink(String oPLink) {
		this.oPLink = oPLink;
	}

	public String getoPMark() {
		return oPMark;
	}

	public void setoPMark(String oPMark) {
		this.oPMark = oPMark;
	}

}
